<template>
<div class="recommend">
    <div v-for="item in recommends" class="recommend-item">
        <a :href="item.link">
            <van-image :src="item.image"></van-image>
            <div class="text">{{item.title}}</div>
        </a>
    </div>
</div>
</template>

<script>
  export default {
    name: "Recommend",
    props:{
      recommends:Array
    }
  }
</script>

<style scoped>
    .recommend{
        display: flex;
        border-bottom: 10px solid #eee;
    }
    .recommend-item{
        flex: 1;
        padding: 5px 5px 10px 5px;
    }
    .van-image{
        margin-bottom: 10px;
    }
    .text{
        text-align: center;
        font-size: 12px;
    }
</style>
